const mongoose = require('mongoose');

//创建文档的结构对象
//设置集合中文档的属性以及属性值的类型
let schema = new mongoose.Schema({
    name:String,
    author:String,
    price:Number,
    //  test:mongoose.Schema.Types.Mixed
});
//创建文档对象  可以对文档进行增删改查的操作
let model = mongoose.model('books',schema);


module.exports = model;